﻿using Se.Model.GameModel.Character;
using Se.Model.Generator;
using Se.Net.Sockets;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SeClient.Module
{
    public static class CharacterModule
    {
        /// <summary>
        /// 注册
        /// </summary>
        /// <param name="name"></param>
        /// <param name="pwd"></param>
        /// <returns></returns>
        public static void RegisterAccount(string name, string pwd)
        {
            GameWorld.NetState.SendPackage(PC_Send.Register(name, pwd));
        }

        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="name"></param>
        /// <param name="pwd"></param>
        /// <returns></returns>
        public static void Login(string name, string pwd)
        {
            GameWorld.NetState.SendPackage(PC_Send.Login(name, pwd));
        }

        /// <summary>
        /// 创建角色
        /// </summary>
        /// <param name="name"></param>
        /// <param name="roleTypeID"></param>
        public static void CreatePlayer(string name, int roleTypeID = 1)
        {
            GameWorld.NetState.SendPackage(PC_Send.CreatePlayer(name, roleTypeID));
        }
    }
}
